#include "precompiled.h"
#include "desktop.h"
#include <QDesktopWidget>
#include <QApplication>
class DesktopPrivate{
	public:
		DesktopPrivate() {}
		~DesktopPrivate() {}
};

Desktop::Desktop(Opl::Core::EntityObject *parent) :
	Opl::Core::EntityObject(parent), O_PRIVATE_CREATE(Desktop)
{
	O_D(Desktop);
	//d->
}

Desktop::~Desktop()
{
	O_PRIVATE_DELETE;
}

const int Desktop::x()const
{
	return QApplication::desktop()->screenGeometry().x();
}

const int Desktop::y()const
{
	return QApplication::desktop()->screenGeometry().y();
}

const int Desktop::width()const
{
	return QApplication::desktop()->screenGeometry().width();
}

const int Desktop::height()const
{
	return QApplication::desktop()->screenGeometry().height();
}
